package com.youlu.campus.admin.auth.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 菜单视图
 */
@Getter
@Setter
public class MenuVo {

    @JsonIgnore
    private Long id;
    @NotNull
    private String name;
    @JsonProperty("url")
    private String url;

    private String img;
    @NotNull
    private Integer weight;

    private String parentId;

    private boolean isRoot = false;

    private String tenantId;

    private Integer type;

    private String permission;

}
